/*
**  Apache License, Version 2.0
**  Notes:Use this command to anonymously check out the latest project source code:
**  Non-members may check out a read-only working copy anonymously over HTTP.
**  SVN checkout http://YHHLineCreateByGsdWsp.googlecode.com/svn/trunk/ 
**
**  Author:		Kevin Yang
**  Email:		Bigearrabbit@qq.com
**
**  DATE:		2013-4-6
**
**  File Name:	YHHELineCreateByGsdAdn.cpp
**
**  Notes:
**  Provide implementation to interface CATIShapeDesignWorkshopAddin
*/

// Local Framework
#include "YHHELineCreateByGsdAdn.h"

// ApplicationFrame Framework 
#include <CATCreateWorkshop.h> // needed to manage workshop access
#include "CATCommandHeader.h"  // needed to instanciate the header

// Creates the YHHELineCreateByGsdAdnHeader command header class
MacDeclareHeader(YHHELineCreateByGsdAdnHeader);  

// To declare that the class 
// is a DataExtension of (late type) YHHLineCreateByGsdAddin

CATImplementClass ( YHHELineCreateByGsdAdn,//ClassName
                    DataExtension,
                    CATBaseUnknown,
                    YHHLineCreateByGsdAddin );//Aliase namefor Dico file

// 
// To declare that YHHLineCreateByGsdAddin implements CATIShapeDesignWorkshopAddin, insert 
// the following line in the interface dictionary :
//
// YHHLineCreateByGsdAddin      CATIShapeDesignWorkshopAddin    libYHHLineCreateByGsdAdn

#include <TIE_CATIShapeDesignWorkshopAddin.h> // needed to tie the implementation to its interface
TIE_CATIShapeDesignWorkshopAddin(YHHELineCreateByGsdAdn);

// YHHELineCreateByGsdAdn : constructor-------------------------------------------------
YHHELineCreateByGsdAdn::YHHELineCreateByGsdAdn()
{
    
}
// YHHELineCreateByGsdAdn : destructor-------------------------------------------------
YHHELineCreateByGsdAdn::~YHHELineCreateByGsdAdn()
{
    
}
// Implements CATIShapeDesignWorkshopAddin::CreateCommands-------------------------------------------------
void YHHELineCreateByGsdAdn::CreateCommands()
{
    
    // Instantiation of the header class created by the macro MacDeclareHeader -
    // commands are always available and are represented by a push button
    
    new YHHELineCreateByGsdAdnHeader("YHHLineCreateByGsdHdr","YHHLineCreateByGsdUI","YHHLineCreateByGsdCmd" ,(void *)NULL);
}
// Implements CATIShapeDesignWorkshopAddin::CreateToolbars-------------------------------------------------
CATCmdContainer* YHHELineCreateByGsdAdn::CreateToolbars()
{
    
    // YHHLineCreateByGsd Toolbar 
    NewAccess        ( CATCmdContainer  , pLineCreateByGsdWkb , YHHLineCreateByGsdTlb );
    
    NewAccess        ( CATCmdStarter    , pLineCreateByGsd    , YHHLineCreateByGsdStr );
    SetAccessCommand ( pLineCreateByGsd    , "YHHLineCreateByGsdHdr" );
    SetAccessChild   ( pLineCreateByGsdWkb , pLineCreateByGsd  );
   
    AddToolbarView   ( pLineCreateByGsdWkb  , 1 , UnDock ); // visible toolbar 

    return pLineCreateByGsdWkb;
    
}
//-----------------------------------------------------------------------------

